<template>
  <div class="message-box">
    <div class="top">
      <div class="top-title">消息列表</div>
      <div class="top-right">
        <div class="top-read">
          全部已读
        </div>
        <img
          class="top-img"
          src="https://image.xuexiwangzhe.com/FntFrbfm8ymlbZJePFgQjRdNNdCf"
        />
      </div>
    </div>
    <div>
      <div class="list-item">
        <div class="item-top">
          <div class="item-time">2019-12-14 08:04</div>
          <div class="item-unread"></div>
        </div>
        <div class="item-main">
          <img
            src="https://image.xuexiwangzhe.com/FuOQO0qhwvt-7T41IkL-TvF6jDy_"
            class="item-head-img"
          />
          <div class="item-info-box">
            <div class="item-content-box">
              <div class="item-content">张三丰 提交了报名申请，需要您审批</div>
              <div class="item-tip">#绩效管理训练营绩效管</div>
            </div>
            <div class="item-status">已同意</div>
          </div>
        </div>
      </div>
      <div class="list-item">
        <div class="item-top">
          <div class="item-time">2019-12-14 08:04</div>
          <div class="item-unread"></div>
        </div>
        <div class="item-main">
          <img
            src="https://image.xuexiwangzhe.com/FuOQO0qhwvt-7T41IkL-TvF6jDy_"
            class="item-head-img"
          />
          <div class="item-info-box">
            <div class="item-content-box">
              <div class="item-content">张三丰 提交了报名申请，需要您审批</div>
              <div class="item-tip">#绩效管理训练营绩效管</div>
            </div>
            <div class="item-status">已同意</div>
          </div>
        </div>
      </div>
      <div class="list-item">
        <div class="item-top">
          <div class="item-time">2019-12-14 08:04</div>
          <div class="item-unread"></div>
        </div>
        <div class="item-main">
          <img
            src="https://image.xuexiwangzhe.com/FuOQO0qhwvt-7T41IkL-TvF6jDy_"
            class="item-head-img"
          />
          <div class="item-info-box">
            <div class="item-content-box">
              <div class="item-content">张三丰 提交了报名申请，需要您审批</div>
              <div class="item-tip">#绩效管理训练营绩效管</div>
            </div>
            <div class="item-status">已同意</div>
          </div>
        </div>
      </div>
      <div class="list-item">
        <div class="item-top">
          <div class="item-time">2019-12-14 08:04</div>
          <div class="item-unread"></div>
        </div>
        <div class="item-main">
          <img
            src="https://image.xuexiwangzhe.com/FuOQO0qhwvt-7T41IkL-TvF6jDy_"
            class="item-head-img"
          />
          <div class="item-info-box">
            <div class="item-content-box">
              <div class="item-content">张三丰 提交了报名申请，需要您审批</div>
              <div class="item-tip">#绩效管理训练营绩效管</div>
            </div>
            <div class="item-status">已同意</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.message-box {
  display: none;
  position: fixed;
  top: 65px;
  right: 0;
  width: 329px;
  height: calc(100% - 65px);
  background-color: #fff;
  border-radius: 3px 0px 0px 0px;
  border: 1px solid #f0f0f0;
}

.message-box:hover {
  .top-read {
    display: block;
  }
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #333;
  font-size: 12px;
  padding: 21px 19px 0 21px;
  margin-bottom: 24px;
}

.top-title {
  font-weight: bold;
}

.top-right {
  display: flex;
  align-items: center;
}

.top-read {
  display: none;
  color: #999999;
  font-size: 11px;
  margin-right: 30px;
  cursor: pointer;
}

.top-img {
  width: 12px;
}

.list-item {
  margin-bottom: 23px;
  padding: 0 21px;
}

.item-top {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.item-time {
  color: #cccccc;
  font-size: 11px;
  margin-right: 6px;
}

.item-unread {
  width: 6px;
  height: 6px;
  background: #ff7632;
  border-radius: 50%;
}

.item-main {
  display: flex;
}

.item-head-img {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  margin-right: 9px;
}

.item-info-box {
  display: flex;
  align-items: center;
}

.item-content-box {
  margin-right: 23px;
  width: 190px;
}

.item-content {
  color: #333;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 6px;
}

.item-tip {
  color: #527cac;
  font-size: 11px;
}

.item-status {
  font-size: 11px;
  color: #999999;
}
</style>
